package com.zsk.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("gop_menu")
@ApiModel("gop菜单实体类")
public class GopMenu implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;
    @ApiModelProperty(name = "menuNo", value = "菜单编号", dataType = "String")
    private String menuNo;

    @ApiModelProperty(name = "pMenuNo", value = "父级菜单编号", dataType = "String")
    private String pMenuNo;

    @TableField("`name`")
    @ApiModelProperty(name = "name", value = "菜单名", dataType = "String")
    private String name;

    @ApiModelProperty(name = "icon", value = "菜单图标", dataType = "String")
    private String icon;

    @ApiModelProperty(name = "url", value = "url地址", dataType = "String")
    private String url;

    @ApiModelProperty(name = "sort", value = "菜单排序号", dataType = "Integer")
    private Integer sort;

    @ApiModelProperty(name = "levels", value = "菜单层级", dataType = "Integer")
    private Integer levels;

    @ApiModelProperty(name = "menuFlag", value = "是否是菜单 N/Y", dataType = "String")
    private String menuFlag;

    @ApiModelProperty(name = "description", value = "备注", dataType = "String")
    private String description;

    @ApiModelProperty(name = "status", value = "是否禁用", dataType = "Boolean")
    private Boolean status;

    @ApiModelProperty(name = "createTime", value = "创建时间", dataType = "Date")
    private Date createTime;

    @ApiModelProperty(name = "updateTime", value = "修改时间", dataType = "Date")
    private Date updateTime;

    @ApiModelProperty(name = "createUser", value = "创建用户", dataType = "Long")
    private Long createUser;

    @ApiModelProperty(name = "updateUser", value = "修改用户", dataType = "Long")
    private Long updateUser;

    private static final long serialVersionUID = 1L;

}